/*
 * @Author: your name
 * @Date: 2021-04-01 14:16:30
 * @LastEditTime: 2021-04-04 15:26:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \shop\training-group-5-warehouse\dianshang\src\api\live\index.js
 */
import axios from '../../utils/request'
import baseUrl from '../../utils/baseUrl'

//直播列表数据
function live(page, limit) {
    // 返回值是Promise;
    return axios.get(baseUrl.url + '/api/live', { params: { page, limit } });
}
//直播间弹幕
function barrage() {
    // 返回值是Promise;
    return axios.get(baseUrl.url + '/api/barrage');
}
//直播间商品列表
function shopList() {
    // 返回值是Promise;
    return axios.get(baseUrl.url + '/api/shoplist');
}

export default {
    live,
    barrage,
    shopList
}